unit FormDrawSimple3DObject;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, VectorTypes, StdCtrls;

type
  TFrmDrawSimple3DObject = class(TForm)
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Edit1: TEdit;
    Edit2: TEdit;
    Edit3: TEdit;
    btnOK: TButton;
    Label4: TLabel;
    Label5: TLabel;
    Label6: TLabel;
    Edit4: TEdit;
    Edit5: TEdit;
    Edit6: TEdit;
    CheckBox1: TCheckBox;
    CheckBox2: TCheckBox;
    procedure btnOKClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
    X1, Y1, Z1, X2, Y2, Z2: Byte;
  end;

implementation

{$R *.dfm}

procedure TFrmDrawSimple3DObject.btnOKClick(Sender: TObject);
begin
  try
    X1 := StrToInt(Edit1.Text);
    Y1 := StrToInt(Edit2.Text);
    Z1 := StrToInt(Edit3.Text);
    X2 := StrToInt(Edit4.Text);
    Y2 := StrToInt(Edit5.Text);
    Z2 := StrToInt(Edit6.Text);
  except
    on e:EConvertError do begin
      MessageDlg(e.Message, mtError, [mbOK], 0);
      Exit;
    end;
  end;
  ModalResult := mrOK;
end;

end.
